package com.ssyx.acl.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.ssyx.model.acl.Permission;

import java.util.List;
import java.util.Map;

/**
 * ClassName:PermissionService
 * Description:
 *
 * @Author kay
 * @Create 2024/4/24 23:22
 * @Version 1.0
 */
public interface PermissionService extends IService<Permission> {
    //获取菜单
    List<Permission> getAllMenu();

    //递归删除菜单
    void removeChildById(Long id);

    //根据角色id获取菜单信息
    List<Permission> getPermissionByRoleId(Long roleId);

    //给指定角色分配菜单权限
    void saveRolePermission(Long roleId, Long[] permissionIds);
}
